﻿<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/Master_Page/Master_IPORT.Master" CodeBehind="Marker_Report.aspx.vb" Inherits="I_PORT.Marker_Report" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<script type="text/javascript" language="javascript">
        function checkNumber(e)
{
var keycode;

if (window.event) keycode = window.event.keyCode; // ใช้ IE อ่ะ

else if (e) keycode = e.which; // ใช้ Firefox เน่าะ

 if (((keycode > 47) && (keycode < 58))||(keycode == 190)||(keycode == 46))
 {
 return true;
 }
return false;
}</script>
   <asp:UpdatePanel ID="UpdatePanel1" runat="server">
   <ContentTemplate>
   <table width="100%" border="0" cellpadding="0" cellspacing="0">
   <tr>
     <td>
        <table width="100%" border="0" cellpadding="2" cellspacing="0">
           <tr>
              <td colspan="2" style="height:5px;"><img src="../Image/space.gif" /></td>
           </tr>
           <tr>
             <td style="width:20%;" align="right"><asp:Label ID="Label2" runat="server" SkinID="lbtxt" Text="DATE :"></asp:Label>&nbsp;</td>
             <td align="left"><asp:TextBox ID="txtDate" runat="server" Width="80px" onkeypress="return false;" ></asp:TextBox>&nbsp;<asp:ImageButton ID="ImgDate" runat="server" ImageUrl="~/Image/calendar.png" />&nbsp;<asp:Label ID="Label3" runat="server" SkinID="lbtxt" Text="TO"></asp:Label>&nbsp;<asp:TextBox ID="txtDateTo" runat="server" Width="80px"  onkeypress="return false;" ></asp:TextBox>&nbsp;<asp:ImageButton ID="ImgDateTo" runat="server"  ImageUrl="~/Image/calendar.png" />&nbsp;<asp:Button ID="btnSearch" runat="server" Text="ค้นหา" CssClass="ButtonStyle" />
                 <asp:CalendarExtender ID="CalendarExtender1" runat="server" TargetControlID="txtDate" Format="dd MMM yyyy" PopupButtonID="ImgDate"></asp:CalendarExtender>
                 <asp:CalendarExtender ID="CalendarExtender2" runat="server" TargetControlID="txtDateTo" Format="dd MMM yyyy" PopupButtonID="ImgDateTo" ></asp:CalendarExtender>
             </td>
           </tr>
           <tr>
             <td colspan="2" align="center">
              <asp:Panel ID="panelGridItem" runat="server" Width="900px" ScrollBars="Horizontal">
              <asp:GridView ID="gridMarker" runat="server" SkinID="gridblueNoPage" DataKeyNames="_D,Stock_Code"
                     AutoGenerateColumns="False" >
                     <Columns>
                          <asp:BoundField HeaderText="xx" DataField="DateMarker" />
                          <asp:BoundField HeaderText="xx" DataField="Open"  />
                          <asp:TemplateField HeaderText="xx" ItemStyle-HorizontalAlign="Center" ItemStyle-Width="53px" ItemStyle-Wrap="false">
                                            <ItemTemplate>
                                               <asp:TextBox ID="txtRecieve"  runat="server"  style="text-align:right;" onkeypress="return checkNumber(this);"  Text="<%# Bind('Recieve') %>" Width="50"></asp:TextBox>
                                            </ItemTemplate>
                          </asp:TemplateField>
                          <asp:BoundField HeaderText="xx" DataField="Tran1"  />
                          <asp:BoundField HeaderText="xx" DataField="Tran2"  />
                          <asp:BoundField HeaderText="xx" DataField="Tran3"  />
                          <asp:BoundField HeaderText="xx" DataField="R_Tran"  />
                          <asp:BoundField HeaderText="xx" DataField="T_Tran"  />
                           <asp:TemplateField HeaderText="xx" ItemStyle-HorizontalAlign="Center" ItemStyle-Width="53px" ItemStyle-Wrap="false">
                                            <ItemTemplate>
                                               <asp:TextBox ID="txtLoss"  runat="server"  style="text-align:right;" onkeypress="return checkNumber(this);"  Text="<%# Bind('Loss') %>" Width="50"></asp:TextBox>
                                            </ItemTemplate>
                          </asp:TemplateField>
                          <asp:BoundField HeaderText="xx" DataField="Total"  />
                          <asp:BoundField HeaderText="xx" DataField="External" />
                          <asp:TemplateField HeaderText="xx" ItemStyle-HorizontalAlign="Center" ItemStyle-Width="53px" ItemStyle-Wrap="false">
                                            <ItemTemplate>
                                               <asp:TextBox ID="txtPlus"  runat="server"  style="text-align:right;" onkeypress="return checkNumber(this);"  Text="<%# Bind('Plus') %>" Width="50"></asp:TextBox>
                                            </ItemTemplate>
                          </asp:TemplateField>
                           <asp:TemplateField HeaderText="xx" ItemStyle-HorizontalAlign="Center" ItemStyle-Width="53px" ItemStyle-Wrap="false">
                                            <ItemTemplate>
                                               <asp:TextBox ID="txt282"  runat="server"  style="text-align:right;" onkeypress="return checkNumber(this);"  Text="<%# Bind('P_1') %>" Width="50"></asp:TextBox>
                                            </ItemTemplate>
                          </asp:TemplateField>
                           <asp:TemplateField HeaderText="xx" ItemStyle-HorizontalAlign="Center" ItemStyle-Width="53px" ItemStyle-Wrap="false">
                                            <ItemTemplate>
                                               <asp:TextBox ID="txt28"  runat="server"  style="text-align:right;" onkeypress="return checkNumber(this);"  Text="<%# Bind('P_2') %>" Width="50"></asp:TextBox>
                                            </ItemTemplate>
                          </asp:TemplateField>
                           <asp:TemplateField HeaderText="xx" ItemStyle-HorizontalAlign="Center" ItemStyle-Width="53px" ItemStyle-Wrap="false">
                                            <ItemTemplate>
                                               <asp:TextBox ID="txt36"  runat="server"  style="text-align:right;" onkeypress="return checkNumber(this);"  Text="<%# Bind('P_3') %>" Width="50"></asp:TextBox>
                                            </ItemTemplate>
                          </asp:TemplateField>
                          <asp:BoundField HeaderText="xx" ItemStyle-Width="200" DataField="Remark" />
                           <asp:TemplateField HeaderText="xx" ItemStyle-HorizontalAlign="Center" ItemStyle-Width="53px" ItemStyle-Wrap="false">
                                            <ItemTemplate>
                                               <asp:TextBox ID="txtShore"  runat="server"  style="text-align:right;" onkeypress="return checkNumber(this);"  Text="<%# Bind('Shore') %>" Width="50"></asp:TextBox>
                                            </ItemTemplate>
                          </asp:TemplateField>
                     </Columns>
                  </asp:GridView>
              </asp:Panel>
                  
             </td>
           </tr>
           <tr>
             <td style="width:20%;" align="right"><asp:Label ID="lbTariff" runat="server" SkinID="lbtxt" Text="Type :"></asp:Label>&nbsp;</td>
             <td align="left">
                 <asp:RadioButtonList ID="radioType"  SkinID="raio" RepeatDirection="Horizontal" runat="server">
                   <asp:ListItem Selected="True" Value="pdf">PDF</asp:ListItem>
                   <asp:ListItem Value="excel">EXCEL</asp:ListItem>
                 </asp:RadioButtonList>
             </td>
           </tr>
           <tr>
             <td style="width:20%;" align="right">&nbsp;</td>
             <td align="left">
                 <asp:Button ID="btnPrint" runat="server" Text="Print" CssClass="ButtonStyle" />
             </td>
           </tr>
           <tr>
              <td colspan="2" style="height:5px;"><img src="../Image/space.gif" /></td>
           </tr>
        </table>
     </td>
    </tr>
   </table>
   </ContentTemplate>
</asp:UpdatePanel>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder2" runat="server">
</asp:Content>
